
package com.wangzha.business.service;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Record;
import com.wangzha.common.base.service.BaseService;
import com.wangzha.common.model.Device;
import com.wangzha.common.model.DeviceActiveCode;
import com.wangzha.common.vo.Grid;

/**
 * 
 * @author qinhailin
 * @date 2021-07-10
 */
public class DeviceActiveCodeService extends BaseService {
   private DeviceActiveCode dao = new DeviceActiveCode().dao();

   @Override
   public Model<DeviceActiveCode> getDao(){
    	return dao;
   }


   public DeviceActiveCode findByActiveCode(String activeCode) {
       return dao.findFirst("select * from device_active_code where active_code = ?", activeCode);
   }

   public Grid page(int pageNumber, int pageSize, Record record) {
      return queryForList(pageNumber, pageSize, record);
   }

}

